//*************************************************************
//*
//*    JCL FOR RUNNING THE QUEST IVP.  RUN THIS JCL AGAINST 
//*    EACH OS/390 SUBSYSTEM ON WHICH QUEST CENTRAL IS 
//*    INSTALLED.  
//*
//*    TO CUSTOMIZE:
//*
//*  C C'%QHLQ%' C'QUEST.P200' ALL
//*  C C'%DB2EXIT%' C'DB2EXITLIB'
//*  C C'%DB2LOAD%' C'DB2LOADLIB'
//*
//*
//*  Parm #1: 
//*  'PRE'  or 'pre'  ==> perform pre-install testing 
//*  'POST' or 'post' ==> perform post-install testing 
//*
//*  Parm #2:
//*  Location name of local subsystem to connect to, 
//*  must be all caps.  Parm is optional; if not supplied, 
//*  default from <DB2EXIT> lib will be used.  If sharing 
//*  <DB2EXIT> among multiple subsystems, parm is 
//*  required.   
//*
//*  Example:
//*  PARM='POST,LOCDSN7' will perform post-install testing
//*  against subsystem indicated by location LOCDSN7 
//*
//*  Pre-install testing will verify CLI is installed and  
//*  bound.   
//*
//*  Post-install testing will do pre-install testing plus
//*  drive some Quest UDFs and Stored Procedures (which 
//*  verifies WLM environments are set up and working).
//*  
//*  Check return code and QSPRINT msg file:
//*  - rc=0 and "Execution SUCCESSFUL" indicates success
//*  - rc>4 and "Execution FAILED maxrc = xx" indicates 
//*    failure, save output and call Technical Support.  
//*
//*
//* Start of DSNAOINI doc - to be used only at the direction of
//* Quest Technical Support.
//* 
//* There are two specific reasons to add the CLI initialization
//* options for QCIVP:
//* (1) To turn on application tracing, which writes a series of
//*     trace messages to a user supplied file for every call to a
//*     CLI function for that job.
//* (2) To provide the correct DB2 ssid to connect to when 2 (or
//*     more) DB2s share the same exit library, thus sharing a
//*     common DSNHDECP member.  The DB2 system that matches the
//*     default SSID in the DSNHDECP will not have any problems.
//*     The others will have a problem until it is overridden
//*     with DSNAOINI.
//* 
//* To add either or both of these functions, do the following.
//* 
//* (1) Turn sequence numbering off in QCIVP jcl member by entering
//*     NUM OFF at the command line. Strange errors will result if
//*     this is not done. Note that you may need to re-enter this
//*     command on subsequent edits of this member.
//* 
//* (2) Add ONLY ONE of the following sets of cards, depending on
//*     the function desired. The cards beginning with '#' are
//*     comments and should be entered as is to provide run-time
//*     doc, but are not essential.
//* 
//*     # Turn on application tracing ONLY
//*     //APPTRC   DD SYSOUT=*
//*     //DSNAOINI DD *
//*     [COMMON]
//*     APPLTRACE=1
//*     APPLTRACEFILENAME="DD:APPTRC"
//*     //*
//* 
//*     # Turn on application tracing AND change default DB2 ssid 
//*     # Change each occurrence of XXXX to the real DB2 ssid 
//*     # Change plan name CLI plan not DSNACLI 
//*     //APPTRC   DD SYSOUT=*
//*     //DSNAOINI DD *
//*     [COMMON]
//*     MVSDEFAULTSSID=XXXX
//*     APPLTRACE=1
//*     APPLTRACEFILENAME="DD:APPTRC"
//*     [XXXX]
//*     MVSATTACHTYPE=CAF
//*     PLANNAME=DSNACLI
//*     //*
//* 
//*     # Change default DB2 ssid ONLY
//*     # Change each occurrence of XXXX to the real DB2 ssid 
//*     # Change plan name CLI plan not DSNACLI 
//*     //DSNAOINI DD *
//*     [COMMON]
//*     MVSDEFAULTSSID=XXXX
//*     [XXXX]
//*     MVSATTACHTYPE=CAF
//*     PLANNAME=DSNACLI
//*     //*
//* 
//* (3) Trace can be turned off/on without removing above lines by
//*     toggling APPLTRACE to 0 for off and 1 for on.
//* 
//* (4) Save the member and re-edit it to make sure there are no
//*     sequence numbers in columns 73-80 for the lines between the
//*     line starting with '//DSNAOINI' and the line starting with
//*     '//*'. 
//* 
//* End of DSNAOINI doc
//*
//*************************************************************
//*
//QCIVP   EXEC PGM=QCIVP,TIME=(,59),PARM='POST'
//STEPLIB  DD  DISP=SHR,DSN=%QHLQ%.LOADLIB
//         DD  DISP=SHR,DSN=CEE.SCEERUN
//         DD  DISP=SHR,DSN=%DB2EXIT%
//         DD  DISP=SHR,DSN=%DB2LOAD%
//QSPRINT  DD  SYSOUT=*
//CEEDUMP  DD  SYSOUT=*
//*